<template>
  <div id="app">
    <router-view :key="$route.fullPath" v-if="isRouterAlive"></router-view>
  </div>
</template>

<script>
export default {
  name: 'app', 
  provide () {
    return{
      reload: this.reload
    }
  },
  data () {
    return {
      isRouterAlive: true
    }
  },
  
  watch: {},
  created () {
  },
  methods: {  

   

    reload(){
     this.isRouterAlive = false
     this.$nextTick(function(){
       this.isRouterAlive = true
     })
   }
  },
  computed: {}
}
</script>
<style lang="scss">
*{
  margin: 0;
  padding: 0;
}
html,body{
  width: 100%;
  height: 100%;
}
#app {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

</style>